package org.game.log;

import com.sojoys.artifact.tools.SK_Plus;
import org.game.log.builder.LogDsp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by fxf on 2018-1-20.
 */
public class LogClientErr implements IGameLogger {

    private LogClientErr() {
    }

    private static LogClientErr ME = new LogClientErr();

    public static LogClientErr me() {
        return ME;
    }

    private static Logger errLogger = LoggerFactory.getLogger("clientErr");


    public void log(int pid, String err) {
        SK_Plus sb = getPlayerInfo(pid);
        addField(sb, err);
        errLogger.info(sb.e());
    }
}
